package com.alibaba.dubbo.demo.impl;

import com.alibaba.dubbo.demo.DemoService;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author:  wyc
 * @date:    2018/6/20 17:27
 */
public class DemoServiceImpl implements DemoService {


    @Override
    public List<String> getPermissions(Long id) {
        List<String> demo = new ArrayList<>();
        demo.add(String.format("Permission_%d", id));
        demo.add(String.format("Permission_%d", id+1));
        demo.add(String.format("Permission_%d", id+2));

        return demo;
    }
}
